package com.headingdata.type;

public class TypeConversionExpressionDemo {
    public static void main(String[] args) {
        byte a = 10;
        short s = 20;
        int c = 30;
        char c1 = 'a';
        int res = a + s + c + c1;
        System.out.println(res);

        double res1 = a + s+ 1.0;
        System.out.println(res1);

        byte d = 20;
        short s1 = 10;
        int res3 = d + s1;
        System.out.println(res3);

    }
}
